public abstract class Physics
{
  public PApplet parent;
  public PVector rotation, position, offset, velo;
  public float velocity, weight;
  public Physics(PApplet parent)
  {
    this.parent = parent;
    position = new PVector(0, 0, 0);
    rotation = new PVector(0, 0, 0);
  }
  public void Update()
  {
    translate(position.x, position.y, position.z);
    rotateY(rotation.x);
    rotateX(rotation.y);
    rotateZ(rotation.z);
    if (position.y<0)//basic physics, to keep above ground
    {
      position.y=0;
    }
  }
}

